Reference | moveto()


Syntax
moveto(x, y)

DescriptionThe moveto() command must be called between beginpath() and endpath(). The two parameters set the location of a new origin point for the path. This would be the same as lifting the pen from a paper and putting it down somewhere else to continue drawing.
Tutorial Paths


Example
stroke(0.2)
beginpath(10, 10)
lineto(40, 10)
moveto(10, 20)
lineto(40, 80)
endpath()